﻿import torch
import torch.nn as nn
import matplotlib.pyplot as plt
from Dataset.MyDataset.Classification.exclusive_or_dateset import (
    get_data,
)

X, y = get_data()

# x1, x2 = X
# # 可视化数据
# plt.scatter(x1[y == 1], x2[y == 1], color="red", label="Positive (1)")
# plt.scatter(x1[y == -1], x2[y == -1], color="blue", label="Negative (-1)")
# plt.axhline(0, color="black", linewidth=0.5)
# plt.axvline(0, color="black", linewidth=0.5)
# plt.xlim(-7, 7)
# plt.ylim(-7, 7)
# plt.xlabel("x1")
# plt.ylabel("x2")
# plt.title("XOR Dataset")
# plt.legend()
# plt.grid(True)
# plt.show()
